package com.szh.zx.gaoDingJavaBook.yitu.one;

import java.util.TreeMap;
import java.util.concurrent.ConcurrentHashMap;

public class TreeMapTest1 {
	public static void main(String[] args) {
		TreeMap<Student, String> treeMap = new TreeMap<>();
		Student d = new Student("d");
		treeMap.put(d,"dd");
		ConcurrentHashMap<Object, Object> hashMap = new ConcurrentHashMap<>();

	}
}

class Student implements Comparable{
	String name;

	public Student(String name) {
		this.name = name;
	}

	@Override
	public int compareTo(Object o) {
		return 1;
	}
}